<link rel="stylesheet" href="../core/resource/weui/weui.css?v=12">
<style>
</style>
<div class='fui-page-group' ng-if="pagedata.op == 'main'">
<div class='fui-page  fui-page-current'>
    <div class="fui-header">
		<div class="fui-header-left" ng-click="goback()">
            <a class="back"></a>
        </div>
		<div class="title">会员中心</div>
		<div class="fui-header-right"></div>
	</div>
	<div class='fui-content member-page navbar'>
		<div class="fui-list-group merchgroup">
			<div class="fui-list jump">
                <a class="fui-list-media">
                   <img ng-if="pagedata.user.headimg==pagedata.member.avatar" class="round" src="{{pagedata.member.avatar || '../core/resource/images/nopic.jpg'}}" />
                    <img ng-if="pagedata.user.headimg!=pagedata.member.avatar" class="round" src="{{tomedia(pagedata.user.headimg) || '../core/resource/images/nopic.jpg'}}" />
                </a>
                <div class="fui-list-inner">
                    <div class="title">{{pagedata.member.nickname || '匿名用户'}}</div>
					<div class="title" style="font-size:0.65rem">余额：{{pagedata.member.credit2 || '0.00'}} <a ng-if="pagedata.setting.recharge!=1" style="margin-left:1rem;color:#f60" href="javascript:;" ng-click="access_json('core/member.recharge/')">充值</a></div>
                </div>
                <a class="jump" href="javascript:;" ng-click="access_json('jy_gohome/home/set')">
					<i class="icon jinyunicon icon-set" style="width: 2rem; text-align: center;"></i>
				</a>
            </div>
		</div>
		<div class="weui_cells weui_cells_access">
            <a ng-repeat="item in pagedata.setting.my_days" class="weui_cell" href="javascript:;" ng-click="access_json(item.action)">
                <div class="weui_cell_hd"><i class="icon {{item.icon}}" style="font-size:0.9rem"></i></div>
                <div class="weui_cell_bd weui_cell_primary">
                    <span>{{item.title}}</span>
                </div>
                <div class="weui_cell_ft"></div>
            </a>     
			<a ng-if="pagedata.ismerch" class="weui_cell" href="javascript:;" ng-click="access_json('jy_gohome/merch.login/')">
                <div class="weui_cell_hd"><i class="icon jinyunicon icon-gerenrenzheng" style="font-size:0.9rem"></i></div>
                <div class="weui_cell_bd weui_cell_primary">
                    <span>商户入口</span>
                </div>
                <div class="weui_cell_ft"></div>
            </a>
			<a ng-if="pagedata.isworker" class="weui_cell" href="javascript:;" ng-click="access_json('jy_gohome/worker_home/')">
                <div class="weui_cell_hd"><i class="icon jinyunicon icon-kefuyouxian" style="font-size:0.9rem"></i></div>
                <div class="weui_cell_bd weui_cell_primary">
                    <span>员工入口</span>
                </div>
                <div class="weui_cell_ft"></div>
            </a>
        </div>
	</div>
</div>
</div>
<div ng-if="pagedata.op == 'set'">
<div class="fui-header">
		<div class="fui-header-left" onclick="window.history.go(-1);">
            <a class="back"></a>
        </div>
		<div class="title">个人设置</div>
		<div class="fui-header-right"></div>
</div>
<div class="fui-list-group merchgroup" ng-click="" style="margin-top:58px">
				<div class="fui-list jump">
					<a class="fui-list-media" ng-if="pagedata.item.headimg">
						<img class="round" src="{{tomedia(pagedata.item.headimg) || '../core/resource/images/nopic.jpg'}}" />
					</a>
					<a class="fui-list-media weui_uploader_input_wrp">
						<input class="weui_uploader_input" ng-click="up_file(pagedata.item,'headimg','image')" accept="image/jpg,image/jpeg,image/png,image/gif" multiple="">
					</a>
				</div>
</div>
<div class="weui_cells weui_cells_form">
			  <div class="weui_cell weui_vcode">
                <div class="weui_cell_hd"><label class="weui_label">姓名</label></div>
                <div class="weui_cell_bd weui_cell_primary">
                    <input class="weui_input" type="text" ng-model="pagedata.item.name" placeholder="请输入您的真实姓名">
                </div>
            </div>
            <div class="weui_cell weui_vcode">
                <div class="weui_cell_hd"><label class="weui_label">手机</label></div>
                <div class="weui_cell_bd weui_cell_primary">
                    <input class="weui_input" type="text" ng-model="pagedata.item.mobile" placeholder="请输入您的手机号码">
                </div>
            </div>
			<div class="weui_cell">
                <div class="weui_cell_hd"><label for="" class="weui_label">地址</label></div>
                <div class="weui_cell_bd weui_cell_primary">
                    <input class="weui_input" ng-model="pagedata.item.address" type="text" value="" placeholder="">
                </div>
                <div class="weui_cell_ft">
                    <i class="icon jinyunicon icon-ditu"></i>
                </div>
        </div>
</div>
<div class="weui_btn_area">
		 <a class="weui_btn weui_btn_primary" href="javascript:" id="showTooltips" ng-click="post(pagedata.item,'set')">提交</a>
</div>
</div>
<div ng-include="sys_html('_footer')"></div>
<script type="text/javascript">
window.scope.location(function(res){
		console.log(res)
		scope.$apply(function(){
			scope.pagedata.item.address = res.address;
		});
});
</script>